package mblog.web.controller.api;

import mblog.base.utils.NeteaseSendCode;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping(value="check")
public class CheckController {

    @RequestMapping(value="mobile")
    public boolean sendMsg(String mobile){
        boolean value = true;
        try {
             value = NeteaseSendCode.sendCode(mobile);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return value;
    }
}
